/**
 * 
 */
package de.cbf.logview.interfaces;

import de.cbf.util.ui.entities.CBFTextStyleDescription;


/**
 * @author Nebelritter
 *
 */
public class ControllerLogView implements IControllerLogView {

	protected String id;

	protected ILogView logView;
	
	public void clearLog() {
		if(logView != null){
			logView.clearLog();
		}		
	}

	public void logStyledText(String text, CBFTextStyleDescription[] ranges) {
		if(logView != null){
			logView.logStyledText(text, ranges);
		}		
	}

	
	public void setId(String id) {
		this.id = id;		
	}

	public void setView(ILogView logView) {		
		this.logView = logView;
	}

	@Override
	public String toString() {
		return "Standard LogView Controller for id "+id;
	}


}
